<template>
    <h2>count:{{OptionStore.count}}</h2>
    <h2>doublecount:{{OptionStore.double}}</h2>
  <h2> 用计算属性表示doublecount:{{doublecount}}</h2>
<button @click="OptionStore.increment">+</button>
</template>

<script setup>
import {useOptionStore} from "@/stores/OptionStore";
import {computed} from "vue";
const OptionStore = useOptionStore();
console.log(OptionStore)
const doublecount = computed(() => OptionStore.count * 2)

</script>

<style scoped>

</style>